<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.4.1.min (1).js"></script>
    <script>
        $(document).ready(function(){
        $("[value='黑底白字']").click(function(){
            let p=$("div").html();
            $("div").replaceWith('<div id="Div1">'+p+'</div>');})
        $("[value='蓝底白字']").click(function(){
            let p2=$("div").html();
            $("div").replaceWith('<div id="Div2">'+p2+'</div>');})
        $("[value='克隆']").click(function(){$("div").after($("div").clone(true))})
        })
    </script>
    <style>
        div{
            width: 1200px;
            height: 800px;
            font-size: 60px;
            border: solid 2px;
            margin-top: 15px;
            margin-left: 165px;
            padding-top: 50px;
            padding-left: 100px;
            word-spacing: 25px;
            letter-spacing: 50px;
            line-height: -40px;
            position: relative;
            border-radius: 15px 15px 15px 15px;
        }
        input{
            width: 150px;
            height: 25px;
            margin-left: 300px;
            margin-top: 25px;
            position: relative;
        }
        #Div2{
           
            background-color: rgb(71, 128, 227);
            color: aliceblue;
            width: 1200px;
            height: 800px;
            font-size: 60px;
            border: solid 2px;
            margin-top: 15px;
            margin-left: 165px;
            padding-top: 50px;
            padding-left: 100px;
            word-spacing: 25px;
            letter-spacing: 50px;
            line-height: -40px;
            position: relative;
            
        }
        #Div1{
            width: 1200px;
            height: 800px;
            font-size: 60px;
            border: solid 2px;
            margin-top: 15px;
            margin-left: 165px;
            padding-top: 50px;
            padding-left: 100px;
            word-spacing: 25px;
            letter-spacing: 50px;
            line-height: -40px;
            position: relative;
            background-color: rgb(118, 45, 45);
            color: aliceblue;
        }
    </style>
</head>
<body>
    <input type="button" value="黑底白字">
    <input type="button" value="蓝底白字">
    <input type="button" value="克隆">
    <div>
        君不见黄河之水天上来,<br>
        奔流到还不复还。<br>
         君不见高堂明镜悲白发,<br>
         朝如青丝暮成雪。<br>
          人生得意须尽欢,<br>
          莫使金樽空对月。<br>
        天生我材必有用,<br>
        千金散尽还复来。<br>
    </div>
</body>
</html>